package com.ciko.code.http.Req;


import com.ciko.code.constant.Api;
import com.ciko.code.constant.Constants;
import com.ciko.code.http.BaseRequest;
import com.ciko.code.http.Res.UserLoginRes;

/**
 * Created by ciko on 2015/11/22.
 */
public class UserLoginReq extends BaseRequest {

    public UserLoginReq(String account) {

        putClientType();
        putEnterpriseId();
        putTimeStamp();
        putAccountType();

        put("account", account);
        put("cid", cid(account + Constants.ACCOUNT_TYPE + Constants.CLIENTTYPE + timeStamp));

    }

    @Override
    public String getUrl() {
        return Api.userLogin;
    }

    @Override
    public Class<?> getResponseClazz() {
        return UserLoginRes.class;
    }

}
